<?php
namespace app\index\model;
use think\Model;
use think\Config;
use think\Db;
/**
 * 模型类
 * Class User
 * @package app\api\model
 */
class Sampling extends Model
{


    protected $name = 'sampling';


    public function getSampling($where,$field='*',$order="id desc"){
        if(!$where) return false;
        $listArr = $this->field($field)->where($where)->order($order)->select();
        $listArr = collection($listArr)->toarray();
        return $listArr;
    }


}
